package com.ruoyi.order.domain.vo;

import com.ruoyi.common.base.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "OrderManualPayDTO对象", description = "OrderManualPayDTO对象")
public class OrderManualPayDTO extends BaseDTO {

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id", required = true)
    private Long orderId;

    /**
     * 订单价格
     */
    @Min(value = 0, message = "订单价格最小不能小于0")
    @NotNull(message = "订单价格不能为空")
    @ApiModelProperty(value = "订单价格", required = true)
    private BigDecimal payAmount;

}
